﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using com.vs.DataAccess.DO;
using com.vs.General;
using com.vs.General.RF;
using com.vs.Inventory.BL;

namespace com.vs.RF.Web.task
{
    public partial class PickFromEntry : RFDisplayPage
    {
        protected TaskDetailDO tskDtlDO = null;
        protected bool bTrackLPN = false;

        protected void Page_Load(object sender, EventArgs e)
        {
            go();
        }

        protected override void initData()
        {
            List<TaskDetailDO> ltTskDtl = null;

            ltTskDtl = (List<TaskDetailDO>)Session[RFSupport.FROM_TASK_DETAIL_DO_LIST];
            if (ltTskDtl == null || ltTskDtl.Count < 1)
            {
                stErrorMessage = MessageManager.MSG_TSK_001;// "没有任务明细";
                return;
            }
            tskDtlDO = ltTskDtl[0];

            //todo:获取库位属性：是否记录托盘号；如果记录，而且work profile要求校验托盘号，那么输出LPN校验文本框
            bTrackLPN = LocationManager.DoseLocTrackLPN(this.rfSess, tskDtlDO.WAREHOUSE, tskDtlDO.FROM_LOC);
        }
    }
}
